package Action;

import com.epwk.action.Action;
import org.openqa.selenium.By;

/**
 * Created by Administrator on 2016/11/24.
 */
public class SelectedNum {

//    入围人数
    public static void selectedNum(int pnum){

        By by = null;
        Action.click(By.xpath(".//*[@id='slt_notice_count_chzn']/a"));
        switch (pnum){
            case 2:
                by = By.xpath(".//*[@id='slt_notice_count_chzn_o_0']");
                break;
            case 3:
                by = By.xpath(".//*[@id='slt_notice_count_chzn_o_1']");
                break;
            case 4:
                by = By.xpath(".//*[@id='slt_notice_count_chzn_o_2']");
                break;
            case 5:
                by = By.xpath(".//*[@id='slt_notice_count_chzn_o_3']");
                break;
        }

        Action.click(by);
    }
}
